/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.io.IOException;
/*     */ import java.io.InputStream;
/*     */ import java.io.OutputStream;
/*     */ import java.io.RandomAccessFile;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class xj
/*     */ {
/*  28 */   private byte[] w = new byte[2];
/*  29 */   private byte[] q = new byte[4];
/*  30 */   private byte[] g = new byte[8];
/*     */   
/*     */   public long v(RandomAccessFile randomAccessFile) throws IOException {
/*  33 */     randomAccessFile.readFully(this.g);
/*  34 */     return v(this.g, 0);
/*     */   }
/*     */   
/*     */   public long v(RandomAccessFile randomAccessFile, int i) throws IOException {
/*  38 */     v(this.g);
/*  39 */     randomAccessFile.readFully(this.g, 0, i);
/*  40 */     return v(this.g, 0);
/*     */   }
/*     */   
/*     */   public long v(InputStream inputStream) throws IOException {
/*  44 */     v(inputStream, this.g, this.g.length);
/*  45 */     return v(this.g, 0);
/*     */   }
/*     */   
/*     */   public long v(InputStream inputStream, int i) throws IOException {
/*  49 */     v(this.g);
/*  50 */     v(inputStream, this.g, i);
/*  51 */     return v(this.g, 0);
/*     */   }
/*     */   
/*     */   public long v(byte[] arrayOfByte, int i) {
/*  55 */     if (arrayOfByte.length - i < 8) {
/*  56 */       v(this.g);
/*     */     }
/*  58 */     System.arraycopy(arrayOfByte, i, this.g, 0, (arrayOfByte.length < 8) ? (arrayOfByte.length - i) : 8);
/*     */     
/*  60 */     long l = 0L;
/*  61 */     l |= (this.g[7] & 0xFF);
/*  62 */     l <<= 8L;
/*  63 */     l |= (this.g[6] & 0xFF);
/*  64 */     l <<= 8L;
/*  65 */     l |= (this.g[5] & 0xFF);
/*  66 */     l <<= 8L;
/*  67 */     l |= (this.g[4] & 0xFF);
/*  68 */     l <<= 8L;
/*  69 */     l |= (this.g[3] & 0xFF);
/*  70 */     l <<= 8L;
/*  71 */     l |= (this.g[2] & 0xFF);
/*  72 */     l <<= 8L;
/*  73 */     l |= (this.g[1] & 0xFF);
/*  74 */     l <<= 8L;
/*  75 */     l |= (this.g[0] & 0xFF);
/*  76 */     return l;
/*     */   }
/*     */   
/*     */   public int z(RandomAccessFile randomAccessFile) throws IOException {
/*  80 */     randomAccessFile.readFully(this.q);
/*  81 */     return v(this.q);
/*     */   }
/*     */   
/*     */   public int z(InputStream inputStream) throws IOException {
/*  85 */     v(inputStream, this.q, 4);
/*  86 */     return v(this.q);
/*     */   }
/*     */   
/*     */   public int v(byte[] arrayOfByte) {
/*  90 */     return z(arrayOfByte, 0);
/*     */   }
/*     */   
/*     */   public int z(byte[] arrayOfByte, int i) {
/*  94 */     return arrayOfByte[i] & 0xFF | (arrayOfByte[1 + i] & 0xFF) << 8 | (arrayOfByte[2 + i] & 0xFF | (arrayOfByte[3 + i] & 0xFF) << 8) << 16;
/*     */   }
/*     */ 
/*     */   
/*     */   public int v(RandomAccessFile randomAccessFile) throws IOException {
/*  99 */     randomAccessFile.readFully(this.w);
/* 100 */     return v(this.w, 0);
/*     */   }
/*     */   
/*     */   public int v(InputStream inputStream) throws IOException {
/* 104 */     v(inputStream, this.w, this.w.length);
/* 105 */     return v(this.w, 0);
/*     */   }
/*     */   
/*     */   public int v(byte[] arrayOfByte, int i) {
/* 109 */     return arrayOfByte[i] & 0xFF | (arrayOfByte[1 + i] & 0xFF) << 8;
/*     */   }
/*     */   
/*     */   public void z(OutputStream outputStream, int i) throws IOException {
/* 113 */     z(this.w, 0, i);
/* 114 */     outputStream.write(this.w);
/*     */   }
/*     */   
/*     */   public void z(byte[] arrayOfByte, int i, int j) {
/* 118 */     arrayOfByte[i + 1] = (byte)(j >>> 8);
/* 119 */     arrayOfByte[i] = (byte)(j & 0xFF);
/*     */   }
/*     */ 
/*     */   
/*     */   public void v(OutputStream outputStream, int i) throws IOException {
/* 124 */     v(this.q, 0, i);
/* 125 */     outputStream.write(this.q);
/*     */   }
/*     */   
/*     */   public void v(byte[] arrayOfByte, int i, int j) {
/* 129 */     arrayOfByte[i + 3] = (byte)(j >>> 24);
/* 130 */     arrayOfByte[i + 2] = (byte)(j >>> 16);
/* 131 */     arrayOfByte[i + 1] = (byte)(j >>> 8);
/* 132 */     arrayOfByte[i] = (byte)(j & 0xFF);
/*     */   }
/*     */ 
/*     */   
/*     */   public void v(OutputStream outputStream, long l) throws IOException {
/* 137 */     v(this.g, 0, l);
/* 138 */     outputStream.write(this.g);
/*     */   }
/*     */   
/*     */   public void v(byte[] arrayOfByte, int i, long l) {
/* 142 */     arrayOfByte[i + 7] = (byte)(int)(l >>> 56L);
/* 143 */     arrayOfByte[i + 6] = (byte)(int)(l >>> 48L);
/* 144 */     arrayOfByte[i + 5] = (byte)(int)(l >>> 40L);
/* 145 */     arrayOfByte[i + 4] = (byte)(int)(l >>> 32L);
/* 146 */     arrayOfByte[i + 3] = (byte)(int)(l >>> 24L);
/* 147 */     arrayOfByte[i + 2] = (byte)(int)(l >>> 16L);
/* 148 */     arrayOfByte[i + 1] = (byte)(int)(l >>> 8L);
/* 149 */     arrayOfByte[i] = (byte)(int)(l & 0xFFL);
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\xj.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */